<!-- eslint-disable vue/multi-word-component-names -->
<script setup>
// 引入子组件
import sonComVue from './05.son.vue'
import {ref} from 'vue'

const count = ref(100)
setTimeout(() => {
  count.value=200
}, 3000)

const getMessage = (msg) => {
  console.log(msg);
  
}

</script>


<template>
  <div class="father">
    <h2>父组件</h2>
    <!-- 绑定属性message,  绑定自定义事件 -->
   <sonComVue :count="count" message="this is app message" @get-message="getMessage"></sonComVue>
  </div>
</template>
